package com.example.demo.entity.request.purchase;

import com.example.demo.common.entity.request.BaseRequest;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author lzy
 * @date 2020-09-15 16:49:27
 */
@Data
public class PurchaseOrderRequest extends BaseRequest implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "订单id")
    private String orderNum;
//    @ApiModelProperty(value = "采购清单id")
//    private Long purchaseListId;
    @ApiModelProperty(value = "采购企业")
    private String enterprise;
    @ApiModelProperty(value = "状态")
    private Integer state;
    @ApiModelProperty(value = "抄送人")
    private String carbonCopy;
    @ApiModelProperty(value = "审批人")
    private String approval;
    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(timezone = "GMT+8",
            pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "起始时间" ,example = "2020-09-16 16:21:51")
    private Date startTime;
    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(timezone = "GMT+8",
            pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "最终时间", example = "2020-09-16 16:21:51")
    private Date endTime;

}
